// AuthApiService.java
package com.tzkyzj.tiremanagersystem.api;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

import java.util.Map;

public interface AuthApiService {

    @GET("/api/auth/user-info")
    Call<Map<String, Object>> getUserInfo();

    @POST("api/auth/login")
    Call<Map<String, Object>> login(@Body Map<String, String> loginData);

    @POST("api/auth/logout")
    Call<Map<String, Object>> logout();

    @GET("api/auth/check")
    Call<Map<String, Object>> checkAuth();

    // 新增：检查权限
    @GET("api/auth/check-permission")
    Call<Map<String, Object>> checkPermission(@Query("resource") String resource);
}